package com.agy.filemanager.mapper;

import com.agy.filemanager.entity.DcDocProjectStep;
import com.agy.filemanager.entity.TreeModel;
import com.agy.filemanager.toolClass.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 项目阶段
 */
@Repository
public interface ProStageMapper extends MyMapper<DcDocProjectStep>{

    /**
     * 项目大类和项目分类树
     * @return
     */
    List<TreeModel> selectTree();

    List<DcDocProjectStep> getProStepByProTypeId(String proTypeId);
    List<TreeModel> selectProjectStepByStepTypeId(String stepTypeId);

    int insertEntity (@Param("dcDocProjectStep")DcDocProjectStep dcDocProjectStep);

    int updateEntityById (@Param("dcDocProjectStep")DcDocProjectStep dcDocProjectStep);
}
